<template>
	<view>
		<view class="head">
			<view class="head_left" @tap="back()">
				<image src="../../../static/wode/return.png" mode=""></image>
				<text>境友</text>
			</view>
			<view class="head_mid">
				通讯录好友
			</view>
			<view class="head_right">

			</view>
		</view>
		<view class="search">
			<image src="../../../static/jingjie/search.png" mode=""></image>
			<text>搜索</text>
		</view>
		<view class="body">
			<view class="">
				<view class="body_top">
					#
				</view>
				<view class="body_item">
					<view class="head_box">
						<image class="headImg" src="../../../static/jingyou/head.png" mode=""></image>
						<!-- <image class="country" src="../../../static/meiguo.png" mode=""></image> -->
					</view>
					<view class="body_right">
						<view class="item_left">
							<text class="name">张三</text>
							<!-- <text class="nickname">一根棒棒糖笑嘻嘻</text> -->
						</view>
						<view class="item_right" @tap="toapplyFor">
							添加
						</view>
					</view>
				</view>
			</view>
			<view class="">
				<view class="body_top">
					Z
				</view>
				<view class="body_item">
					<view class="head_box">
						<image class="headImg" src="../../../static/avatar.jpg" mode=""></image>
						<image class="country" src="../../../static/meiguo.png" mode=""></image>
					</view>
					<view class="body_right">
						<view class="item_left">
							<text class="name">张三</text>
							<text class="nickname">一根棒棒糖笑嘻嘻</text>
						</view>
						<view class="item_right2">
							已添加
						</view>
					</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods: {
			toapplyFor(){
				uni.navigateTo({
					url:"../applyFor/applyFor"
				})
			},
			back() {
				uni.navigateBack({
					delta: 2
				})
			}
		},
	}
</script>

<style scoped>
	.head {
		width: 100%;
		display: flex;
		justify-content: space-between;
		height: 128upx;
		background: #ffffff;
		padding: 0 24upx;
		z-index: 200;
	}

	.head image {
		width: 20upx;
		height: 36upx;
		margin-right: 9upx;
	}

	.head_left {
		height: 82upx;
		width: 106upx;
		display: flex;
		align-items: center;
		line-height: 82upx;
		color: #666666;
		font-size: 32upx;

	}

	.head_right {
		width: 106upx;
	}

	.search {
		margin: 0 auto;
		margin-top: 20upx;
		background: #FFFFFF;
		border: 1upx solid #E6E6E6;
		border-radius: 64upx;
		width: 702upx;
		height: 64upx;
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 28upx;
		color: #999999;
		margin-bottom: 20upx;
	}

	.search image {
		height: 28upx;
		width: 28upx;
		margin-right: 10upx;
	}

	.body_top {
		height: 40upx;
		line-height: 40upx;
		padding: 0 24upx;
		color: #999999;
		font-size: 20upx;
	}

	.body_item {
		display: flex;
		background: #FFFFFF;
		padding: 22upx 24upx;
	}

	.head_box {
		position: relative;
		margin-right: 28upx;
	}

	.headImg {
		width: 106upx;
		height: 106upx;
		border-radius: 50%;
		overflow: hidden;
	}

	.country {
		width: 36upx;
		height: 36upx;
		position: absolute;
		left: -4upx;
		bottom: 8upx;
	}

	.body_right {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
	}

	.item_left {
		display: flex;
		flex-direction: column;
	}

	.name {
		color: #333333;
		font-size: 32upx;
		font-weight: bold;
	}

	.nickname {
		color: #999999;
		font-size: 26upx;
		padding-top: 20upx;
	}

	.item_right {
		width: 100upx;
		height: 58upx;
		background: #46CECF;
		line-height: 58upx;
		color: #FFFFFF;
		font-size: 26upx;
		text-align: center;
		border-radius: 10upx;
	}
	.item_right2{
		color: #999999;
		font-size: 26upx;
	}
</style>
